#!/bin/bash
echo "可用的 JDK"
yum list|grep jdk
echo "安装 java-1.8.0-openjdk.x86_64"
sudo yum -y install java-1.8.0-openjdk.x86_64
echo "Java 版本号"
java -version